#ifndef _GET_PUT_H_
#define _GET_PUT_H_
/* #define ROOTDIR "/home/xxxxx/root" */
#define ROOTDIR "/home/cody0s/wangpanv4_1.1/server/files"
#define MAX_PATH_COMPONENTS 1024
#include "communicate.h"
#include <my_header.h>
#include "stack.h"
#include "mysql_info.h"
typedef struct user_s
{
    int parent_id;//父 id
    char pwd[256];//路径 
    char name[256];//用户名
    bool is_deleted;//是否存在
    char type;//类型
    int id;
    char sha256[65];//sha
    char filename[256];//文件名
}user_t;
int getsfile(int cur_user_id,int clientfd,MYSQL* mysql,user_t *usr,char* filename,my_stack *st);
int putsfile(int cur_user_id,int clientfd,MYSQL* mysql,user_t *usr,char* filename,my_stack *st);
#endif
